﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProformaEditForm.aspx.cs" Inherits="UILGestion.VentaAdmin.Proforma.ProformaEditForm" %>
<%@ Register Assembly="WebLib" Namespace="WebLib" TagPrefix="lib" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register src="../../Control/menuCtrl.ascx" tagname="menuCtrl" tagprefix="uc1" %>
<%@ Register src="../OrdenVenta/OrdenVentaItem.ascx" tagname="OrdenVentaItem" tagprefix="uc2" %>
<%@ Register src="ProformaItem.ascx" tagname="ProformaItem" tagprefix="uc3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
   <title>EDITAR PROFORMA</title>
    <script src="../../Scripts/Proforma.js" type="text/javascript"></script>
    <link href="../../css/main.css" rel="stylesheet" type="text/css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/fonts.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/global.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/theme.css" />
    <style type="text/css">
        .style2
        {
            height: 26px;
        }
        .style4
        {
            text-align: right;
        }
        .style5
        {
            height: 26px;
            text-align: right;
        }
        .style6
        {
            height: 3px;
        }
    </style> 
   


    <script src="../../Scripts/OrdenVenta.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery-1.5.2.min.js" type="text/javascript"></script>
  
   <%--<script type="text/javascript">
       $(document).ready(function () {
           $(document).bind('contextmenu', function (e) {
               return false;
           });
       });
</script>--%>
</head>
<body>
    <form id="form1" runat="server">
     <input id="type" type="hidden" runat="server" />
     <input id="internalID" type="hidden" runat="server" />
  
    <input id="paginaAnt" type="hidden" runat="server" />
        <input id="idProforma" type="hidden" runat="server" />
    <input id="idColeccion" type="hidden" runat="server" />
   
    <input id="idProyecto" type="hidden" runat="server" />
     <uc1:menuCtrl ID="menuCtrl1" runat="server" />
    
      <asp:ToolkitScriptManager ID="ToolkitScriptManager2" runat="server" 
      EnableScriptGlobalization="true"  
     EnablePartialRendering="true" />
    
     <asp:Panel ID="pnlMain" runat="server"
  CssClass="Heading secTitle AreaHeading ms-crm-List-Header">
  <asp:Label ID="Label3" runat="server" Text="EDITAR PROFORMA" style="font-size: large; color: #960818" 
             ></asp:Label>
         :<asp:Label ID="numDocumentoLBL" runat="server" style="font-size: large; color: #960818"></asp:Label>
 </asp:Panel>
    <asp:Panel ID="PanelButtom" runat="server"     class="ms-crm-Form-Body" >                 
   <table >
<tr>

<td>
    <asp:Button ID="saveBTN" runat="server" Text="Guardar"   OnClientClick="return confirm('Usted quiere guardar la Orden Venta?')"   
       OnClick="button"   CssClass="ms-crm-List-Header"    /></td>
<td>
    <asp:Button ID="cancelarBTN" runat="server" Text="Cancelar"  
       OnClick="button" CssClass="ms-crm-List-Header"  /></td>
        <td></td>
        <td>
    <asp:Button ID="refreshBTN" runat="server" Text="Restablecer"   OnClick="button" CssClass="ms-crm-List-Header" 
          /></td> 
 
</tr>
</table>
</asp:Panel>

<asp:Panel ID="PanelBody" runat="server"  BackColor="white" >

    <table >
         <tr>
                                            <td align="right" width="80PX">
                                                Fecha:</td>
                                            <td width="180PX">
                                                <asp:TextBox ID="fechaTXT" runat="server" ReadOnly="true" 
                                                    Width="80px" TabIndex="1"></asp:TextBox>
                                                <asp:ImageButton ID="ImageButton3" runat="Server" 
                                                    AlternateText="Click aqui para mostrar calendario" 
                                                    ImageUrl="~/Images/month.gif" Width="16px" TabIndex="-1" />
                                                <asp:CalendarExtender ID="CalendarExtender2" runat="server" 
                                                    PopupButtonID="ImageButton3" TargetControlID="FechaTXT"></asp:CalendarExtender>
                                            </td>
                                            <td class="style4" width="100px">
                                                Formato de Venta:</td>
                                            <td width="220px">
                                                <asp:DropDownList ID="formatoVentaDDL" runat="server" Width="220px" 
                                                    TabIndex="8" AutoPostBack="True" 
                                                    onselectedindexchanged="formatoVentaDDL_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </td>
                                            <td width="300PX" rowspan="5" valign="top">

                                                  <asp:UpdatePanel ID="totalUPNL" runat="server" UpdateMode="Conditional">
                                <ContentTemplate>
                                    <table>
                                        
                                        <tr>
                                            <td  >
                                                <table class="PanelTotales">
                                                    <tr>
                                                        <td align="right" width="120px">
                                                            Total:</td>
                                                        <td align="right" width="100px">
                                                            <asp:Label ID="totalTXT" runat="server"></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right" width="120px">
                                                            <asp:Label ID="contadoLBL" runat="server"></asp:Label>
                                                        </td>
                                                        <td align="right" valign="100px" width="100px">
                                                            <asp:Label ID="contadoTXT" runat="server"></asp:Label>
                                                            <br />
                                                        </td>
                                                    </tr>
                                            
                                                    <tr>
                                                        <td align="right" width="120px">
                                                            <asp:Label ID="bonoLBL" runat="server"></asp:Label>
                                                        </td>
                                                        <td align="right" valign="100px" width="100px">
                                                            <asp:Label ID="bonoTXT" runat="server"></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right" width="120px">
                                                            <asp:Label ID="chLBL" runat="server"></asp:Label>
                                                        </td>
                                                        <td align="right" valign="100px" width="100px">
                                                            <asp:Label ID="chTXT" runat="server"></asp:Label>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </ContentTemplate>
                                <Triggers>
                                <asp:AsyncPostBackTrigger ControlID="formatoVentaDDL" />
                                <asp:AsyncPostBackTrigger ControlID="bancoDDL" />
                                
                                </Triggers>
                            </asp:UpdatePanel>

                                                                     
</td>
                                        </tr>
         <tr>
                                            <td align="right" width="80PX">
                                                Nombres: </td>
                                            <td width="180PX">
                                             
                                                <asp:TextBox ID="nombreTXT" runat="server" Width="180px" 
                                                    TabIndex="2"></asp:TextBox>
                                             
                                            </td>
                                            <td class="style4" width="100px">
                                                Moneda:</td>
                                            <td width="220px">
                                                <asp:DropDownList ID="monedaDDL" runat="server" Enabled="false" Width="150px">
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
         <tr>
                                            <td align="right" width="80PX">
                                                Apellidos:</td>
                                            <td width="180PX">
                                                <asp:TextBox ID="apellidoTXT" runat="server"  
                                                    Width="180px" TabIndex="3"></asp:TextBox>
                                            </td>
                                            <td class="style4" width="100px">
                                                Banco:</td>
                                            <td width="220px">
                                                <asp:DropDownList ID="bancoDDL" runat="server" AutoPostBack="True" 
                                                    onselectedindexchanged="bancoDDL_SelectedIndexChanged" TabIndex="9" 
                                                    Width="180px">
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right" width="80PX">
                                                DNI:</td>
                                            <td width="180PX">
                                                <asp:TextBox ID="dniTXT" runat="server" Width="150px" 
                                                    TabIndex="4"></asp:TextBox>
                                            </td>
                                            <td class="style4" width="100px">
                                                Observación:</td>
                                            <td width="220px" rowspan="3">
                                                <asp:TextBox ID="TextBox1" runat="server" Height="60px" TextMode="MultiLine" 
                                                    Width="220px" TabIndex="10"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right" class="style2" width="80PX">
                                                Email:</td>
                                            <td class="style2" width="180PX">
                                                <asp:TextBox ID="correoElectronicoTXT" runat="server" 
                                                    TabIndex="5" Width="180px"></asp:TextBox>
                                            </td>
                                            <td class="style5" width="100px">
                                                &nbsp;</td>
         </tr>
         <tr>
             <td align="right" class="style2" width="80PX">
                 Telefono:</td>
             <td class="style2" width="180PX">
                 <asp:TextBox ID="telefonoTXT" runat="server" TabIndex="6" Width="150px"></asp:TextBox>
             </td>
             <td class="style5" width="100px">
                 &nbsp;</td>
         </tr>
         <tr>
             <td align="right" class="style2" width="80PX">
                 Celuar:</td>
             <td class="style2" width="180PX">
                 <asp:TextBox ID="celularTXT" runat="server" TabIndex="6" Width="150px"></asp:TextBox>
             </td>
             <td class="style5" width="100px">
                 &nbsp;</td>
             <td class="style2" width="220px">
                 &nbsp;</td>
         </tr>
         <tr>
             <td align="right" class="style2" width="80PX">
                 Dirección:</td>
             <td class="style2" width="180PX">
                 <asp:TextBox ID="direccionTXT" runat="server" TabIndex="7" Width="180px"></asp:TextBox>
             </td>
             <td class="style5" width="100px">
                 Como te enteraste?</td>
             <td class="style2" width="220px">
                 <asp:DropDownList ID="enterasteDDL" runat="server" TabIndex="11" Width="220px">
                 </asp:DropDownList>
             </td>
         </tr>
         <tr >
             <td align="right" class="style6" width="80PX">
             </td>
             <td class="style6" colspan="3" width="180PX">
             </td>
         </tr>
       
        
    </table>
    <div>
    
           <asp:TabContainer ID="TabContainer1" runat="server"  ActiveTabIndex="0"   
               Width="100%" >
          <asp:TabPanel ID="TabPanel1" runat="server" HeaderText="Detalle" >
          <ContentTemplate>
             <asp:UpdatePanel runat="server" ID="proformaItemUPNL" UpdateMode="Conditional">
        
            <ContentTemplate>
                    <uc3:ProformaItem ID="ProformaItem1" runat="server" />
        </ContentTemplate>
       <Triggers>
       <asp:AsyncPostBackTrigger ControlID="formatoVentaDDL" />
       <asp:AsyncPostBackTrigger ControlID="bancoDDL" />
       </Triggers>
        </asp:UpdatePanel>
</ContentTemplate>
</asp:TabPanel>

    <asp:TabPanel ID="TabPanel2" runat="server" HeaderText="Informacion" >
       <ContentTemplate>
   <table>
     <tr>
             <td align="right" class="style2" width="80PX">
                 Tipo Ingreso(Remuneración):
             </td>
             <td class="style2" width="180PX">
                 <asp:TextBox ID="tipoIngresoTXT" runat="server" TabIndex="7" Width="350px"></asp:TextBox>
             </td>
         </tr>
         <tr>
             <td align="right" class="style2" valign="top" width="80PX">
                 Observación Financiera:</td>
             <td class="style2" width="180PX">
                 <asp:TextBox ID="ObservacionFinTXT" runat="server" TabIndex="7" 
                     TextMode="MultiLine" Width="350px" Height="80px"></asp:TextBox>
             </td>
         </tr>
   
   </table>
       </ContentTemplate>
   </asp:TabPanel>
</asp:TabContainer>
      
  






        
           
    </div>

    </asp:Panel>
    </form>
</body>
</html>
